import { getUserAuthority } from '@/unit/auth';

// 是否有该按钮的权限
export const isButtonAuthority = (str) => {
	const userAuthorityArr = getUserAuthority().split('@')
	let bool = false
	userAuthorityArr.map(item => {
		if(item === str){
			bool = true
		}
	})
	return bool
}